﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Popup.Master"   CodeBehind="P_JobCard.aspx.cs"
    Inherits="SAP.P_JobCard" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript" src="../../js/jquery-1.4.3.min.js"></script>
    <script type="text/javascript" src="../../js/main.js"></script>
    <link href="../../skin/skin.css" rel="stylesheet" type="text/css" />

 

<script type="text/javascript">
        function RefreshUpdatePanel() {

        };

        function PopupPrint() {
            <%Session["DocumentType"] = "RO"; %> 
            var url = "rptViewer.aspx?type=RO&GeneralID=" + document.getElementById('hf_GeneralID').value;
            window.open(url, '_self');
        };

</script>
   <div>

    <asp:UpdatePanel ID="editItemUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="True">       
        <ContentTemplate>
            <span class="style1">Repair Order:</span><br />
            <table border="0" width="100%">
                        <tr>
                        <td style="width:50%">
                            <table border="0" width="100%" style="background-color: #C9DBF2;"> 
                            <tr>
                                <td  style="width: 15%"  class="FormLineItemAlt">Date</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txtDate" runat="server" Enabled="False" Width="35%"></asp:TextBox>
                                     PO No.
                                     <asp:TextBox ID="txt_PONo" runat="server" Enabled="False" Width="35%"></asp:TextBox>
                                </td>
                                          <td  style="width: 15%"  class="FormLineItemAlt">Customer Name</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_CusName" runat="server" Width="90%" Enabled="False"></asp:TextBox>
                                 </td>
                            </tr>
                             <tr>
                                <td  style="width: 15%"  class="FormLineItemAlt">Receptionist</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_Receptionist" runat="server" Enabled="False" Width="90%"></asp:TextBox>
                                 </td>
                                         <td  style="width: 15%" class="FormLineItemAlt">Address</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_Address" runat="server" Enabled="False" Width="90%"></asp:TextBox>
                                 </td>
                            </tr>
                            <tr>
                                <td  style="width: 15%"  class="FormLineItemAlt">Date In</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_DateIn" runat="server" Enabled="False"></asp:TextBox>
                                     <cc1:CalendarExtender ID="txt_DateIn_CalendarExtender" runat="server" 
                                         Format="dd/MM/yyyy" PopupButtonID="ImageButton3" TargetControlID="txt_DateIn">
                                     </cc1:CalendarExtender>
                                     <asp:TextBox ID="txt_TimeIn" runat="server" Width="60px" Enabled="False"></asp:TextBox>
                                </td>
                                         <td  style="width: 15%" class="FormLineItemAlt">Tax Code</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_TaxCode" runat="server" Enabled="False" Width="90%"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td  style="width: 15%"  class="FormLineItemAlt">Exp. Delivery.</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_ExpDate" runat="server" Enabled="False"></asp:TextBox>
                                     <cc1:CalendarExtender ID="txt_ExpDate_CalendarExtender" runat="server" 
                                         Format="dd/MM/yyyy" PopupButtonID="ImageButton4" TargetControlID="txt_ExpDate">
                                     </cc1:CalendarExtender>
                                     <asp:TextBox ID="txt_ExpTime" runat="server" Width="60px" Enabled="False"></asp:TextBox>
                                </td>
                                 <td  style="width: 15%"  class="FormLineItemAlt">Tel</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_Tel" runat="server" Enabled="False" Width="45%"></asp:TextBox>
                                </td>
                            </tr>
                             <tr>
                                <td  style="width: 15%"  class="FormLineItemAlt">Start Date</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_StartDate" runat="server" Enabled="False"></asp:TextBox>
                                     <cc1:CalendarExtender ID="txt_StartDate_CalendarExtender" runat="server" 
                                         Format="dd/MM/yyyy" PopupButtonID="ImageButton5" 
                                         TargetControlID="txt_StartDate">
                                     </cc1:CalendarExtender>
                                     <asp:TextBox ID="txt_StartTime" runat="server" Width="60px" Enabled="False"></asp:TextBox>
                                 </td>
                                         <td  style="width: 15%"  class="FormLineItemAlt">Contact Person</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_ContactPerson" runat="server" ClientIDMode="Static" 
                                         Enabled="False" Width="55%"></asp:TextBox>
                                     <asp:TextBox ID="txt_PhoneContact" runat="server" ClientIDMode="Static" 
                                         Enabled="False" Width="35%"></asp:TextBox>
                                </td>
                            </tr>
                             <tr>
                                <td  style="width: 15%"  class="FormLineItemAlt">Finish Date</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_FinishDate" runat="server" Enabled="False"></asp:TextBox>
                                     <cc1:CalendarExtender ID="txt_FinishDate_CalendarExtender" runat="server" 
                                         Format="dd/MM/yyyy" PopupButtonID="ImageButton6" 
                                         TargetControlID="txt_FinishDate">
                                     </cc1:CalendarExtender>
                                     <asp:TextBox ID="txt_FinishTime" runat="server" Width="60px" Enabled="False"></asp:TextBox>
                                 </td>
                                         <td class="FormLineItemAlt" style="width: 15%">VIN/ Name</td>
                                 <td class="FormLineItemAlt" style="width: 35%">
                                     <asp:TextBox ID="txt_VIN" runat="server" Enabled="False" Width="45%"></asp:TextBox>
                                     <asp:TextBox ID="txt_VehicleName" runat="server" Enabled="False" Width="45%"></asp:TextBox>
                                 </td>
                            </tr>

                            <tr>
                                <td  style="width: 15%"  class="FormLineItemAlt">Actual Delivery</td>
                                 <td  style="width: 35%"  class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_ActualDate" runat="server" Enabled="False"></asp:TextBox>
                                     <cc1:CalendarExtender ID="txt_ActualDate_CalendarExtender" runat="server" 
                                         Format="dd/MM/yyyy" PopupButtonID="ImageButton7" 
                                         TargetControlID="txt_ActualDate">
                                     </cc1:CalendarExtender>
                                     <asp:TextBox ID="txt_ActualTime" runat="server" Width="60px" Enabled="False"></asp:TextBox>
                                </td>
                                         <td class="FormLineItemAlt" style="width: 15%">Brand</td>
                                 <td class="FormLineItemAlt" style="width: 35%">
                                     <asp:TextBox ID="txt_Brand" runat="server" Enabled="False" Width="90%"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                               <td   class="FormLineItemAlt" style="width: 15%">Technician</td>
                                 <td  class="FormLineItemAlt"  style="width: 35%">
                                     <asp:TextBox ID="txt_Technician" runat="server" Enabled="False" Width="90%"></asp:TextBox>
                                </td>
                                         <td class="FormLineItemAlt" style="width: 15%">Engine No./ Reg No</td>
                                 <td class="FormLineItemAlt" style="width: 35%">
                                     <asp:TextBox ID="txt_EngineNo" runat="server" Enabled="False" Width="45%"></asp:TextBox>
                                     <asp:TextBox ID="txt_RegNo" runat="server" Enabled="False" Width="45%"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                               <td   class="FormLineItemAlt" style="width: 15%">Adviser</td>
                                 <td   class="FormLineItemAlt" style="width: 35%">
                                     <asp:TextBox ID="txt_Adviser" runat="server" Enabled="False" Width="90%"></asp:TextBox>
                                </td>
                                         <td class="FormLineItemAlt" style="width: 15%">Odometer: </td>
                                 <td class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_Odometer" runat="server" Enabled="False" Width="45%"></asp:TextBox>
                                </td>
                            </tr>

                            <tr>
                               <td   class="FormLineItemAlt" style="width: 15%">Notes:</td>
                                 <td   class="FormLineItemAlt" colspan="3">
                                     <asp:TextBox ID="txt_Notice" runat="server" Height="53px" TextMode="MultiLine" 
                                         Width="95%" Enabled="False"></asp:TextBox>
                                </td>
                            </tr>

                            </table>

                        </td>
                       
                        </tr>
                   </table>


                   <table border = "0", width="100%">
                       <tr>
                            <td>
                                <asp:Button ID="btn_Cancel" runat="server" BackColor="#1B7FC2" 
                                    ForeColor="#FFFFFF" Height="30px" OnClientClick="return Main.cancelDialogClick()" 
                                    Text="Close" Width="90px" />
                                <asp:Button ID="btn_Print" runat="server" BackColor="#1B7FC2" 
                                    ForeColor="#FFFFFF" Height="30px" 
                                     Text="Print" Width="90px" OnClientClick="PopupPrint();"  />
                                <asp:HiddenField ID="hf_GeneralID" runat="server" ClientIDMode="Static" />
                            </td>
                       </tr>

                       <tr>
                            <td>
                                <asp:Label ID="lb_Message" runat="server" Text="PARTS:" Font-Bold="True"></asp:Label>
                                </td>
                       </tr>
                   </table>
                   
                    <table border="0" width="100%" style="background-color: #D1D4D8;">
                    
                        <asp:GridView ID="grvPO" CssClass="GridInner" runat="server" Width="100%" BorderColor="White"
                                BackColor="White" AllowSorting="True" AutoGenerateColumns="False" CellPadding="2"
                                HeaderStyle-Height="27px" CellSpacing="2" HeaderStyle-VerticalAlign="Middle"
                                AllowPaging="True"  PageSize="20">
                                <PagerSettings Mode="NumericFirstLast" />
                                <PagerStyle BackColor="#70A0D0" Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <RowStyle BackColor="#D9E0ED" BorderColor="White" BorderWidth="2px" Height="25px" />
                                <AlternatingRowStyle BackColor="#EEF1F7" BorderColor="White" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField HeaderText="#">
                                        <ItemStyle HorizontalAlign="Center" Width="20px" />
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNo" runat="server" Text='<%# Eval("RowNum") %>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Part NBR">
                                        <ItemStyle HorizontalAlign="Left" Width="100px" />
                                        <HeaderStyle VerticalAlign="Middle" Font-Bold="true" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblItemCode" runat="server" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("ItemCode")) %>' ></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Part Name">
                                        <ItemStyle HorizontalAlign="Left" Width="250px" />
                                        <HeaderStyle VerticalAlign="Middle" Font-Bold="true" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblItemName" runat="server" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("ItemName")) %>' BorderStyle="none" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="VN Name">
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Left" Width="250px" />
                                        <ItemTemplate>
                                            <asp:Label ID="lbFrgnName" runat="server" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("FrgnName")) %>' BorderStyle="none" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Quantity">
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Right" Width="50px" />
                                        <ItemTemplate>

                                             <asp:Label ID="txtQty" runat="server" Width="97%" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("Quantity")) %>'
                                                AutoPostBack="true" Style="text-align: right"/>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                                <HeaderStyle BackColor="#6095C9" Font-Bold="true" ForeColor="#ffffff" Font-Overline="False"
                                    Height="27px" VerticalAlign="Bottom" />
                                <EmptyDataTemplate>
                                    <table class="GridInner" style="width: 100%; border-color: White;" border="1" rules="all" cellspacing="2" cellpadding="2">
                                        <tr valign="middle" style="height: 27px; color: white; font-weight: bold; text-decoration: none; background-color: rgb(96, 149, 201);">
                                           
                                            <th>
                                                <span>#</span>
                                            </th>
                                            <th>
                                                <span>Part NBR</span>
                                            </th>
                                            <th>
                                                <span>Part Name</span>
                                            </th>
                                            <th>
                                                <span>VN Name</span>
                                            </th>
                                            <th>
                                                <span>Quantity</span>
                                            </th>
                                        </tr>
                                        <tr>
                                            <td colspan="5">
                                                <span>No Data</span>
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:GridView>


                    </table>
                    <table border="0" width="100%" style="background-color: #D1D4D8;">
                    <tr>
                        <td> <asp:Label ID="Label1" runat="server" Text="JOBS:" Font-Bold="True"></asp:Label>
                        </td>
                    </tr>
                    </table>
              <table border="0" width="100%" style="background-color: #D1D4D8;">
                    
                        <asp:GridView ID="gv_Labour" CssClass="GridInner" runat="server" Width="100%" BorderColor="White"
                                BackColor="White" AllowSorting="True" AutoGenerateColumns="False" CellPadding="2"
                                HeaderStyle-Height="27px" CellSpacing="2" HeaderStyle-VerticalAlign="Middle"
                                AllowPaging="True"  PageSize="20">
                                <PagerSettings Mode="NumericFirstLast" />
                                <PagerStyle BackColor="#70A0D0" Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <RowStyle BackColor="#D9E0ED" BorderColor="White" BorderWidth="2px" Height="25px" />
                                <AlternatingRowStyle BackColor="#EEF1F7" BorderColor="White" BorderWidth="2px" />
                                <Columns>
                                    <asp:TemplateField HeaderText="#">
                                        <ItemStyle HorizontalAlign="Center" Width="20px" />
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblNo" runat="server" Text='<%# Eval("RowNum") %>' BorderStyle="none">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Code">
                                        <ItemStyle HorizontalAlign="Left" Width="100px" />
                                        <HeaderStyle VerticalAlign="Middle" Font-Bold="true" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblItemCode" runat="server" Text='<%# Eval("PositionCode") %>' ></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Name">
                                        <ItemStyle HorizontalAlign="Left" Width="250px" />
                                        <HeaderStyle VerticalAlign="Middle" Font-Bold="true" />
                                        <ItemTemplate>
                                            <asp:Label ID="lblItemName" runat="server" Text='<%# Eval("FRTName") %>' BorderStyle="none" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                   
                                    <asp:TemplateField HeaderText="Quantity">
                                        <HeaderStyle VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Right" Width="50px" />
                                        <ItemTemplate>

                                             <asp:Label ID="txtQty" runat="server" Width="97%" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("Quantity")) %>'
                                                AutoPostBack="true" Style="text-align: right"/>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                                <HeaderStyle BackColor="#6095C9" Font-Bold="true" ForeColor="#ffffff" Font-Overline="False"
                                    Height="27px" VerticalAlign="Bottom" />
                                <EmptyDataTemplate>
                                    <table class="GridInner" style="width: 100%; border-color: White;" border="1" rules="all" cellspacing="2" cellpadding="2">
                                        <tr valign="middle" style="height: 27px; color: white; font-weight: bold; text-decoration: none; background-color: rgb(96, 149, 201);">
                                           
                                            <th>
                                                <span>#</span>
                                            </th>
                                            <th>
                                                <span>Code</span>
                                            </th>
                                            <th>
                                                <span>Name</span>
                                            </th>
                                            <th>
                                                <span>Quatity</span>
                                            </th>
                           
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <span>No Data</span>
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                            </asp:GridView>


                    </table>
        </ContentTemplate>
        <Triggers>
           <%-- <asp:PostBackTrigger  ControlID="btnFilter" />--%>
          <%--  <asp:PostBackTrigger  ControlID="txtFilter" />--%>
        </Triggers>
    </asp:UpdatePanel>
    </div>
    </asp:Content>
